package top.ieei.demo.ftp.server;

import java.io.Serializable;


public class FtpServerAuth implements Serializable
{
    
    // <变量的意义、目的、功能和可能被用到的地方>
    private static final long serialVersionUID = -1757360839149853310L;
    
    private String userName;
    
    private String password;
    
    private boolean enableAnonymous;
    
    private boolean sftpUser;
    
    
    /**
     * @return 返回 userName
     */
    public String getUserName()
    {
        return userName;
    }
    
    /**
     * @param 对userName进行赋值
     */
    public void setUserName(String userName)
    {
        this.userName = userName;
    }
    
    /**
     * @return 返回 password
     */
    public String getPassword()
    {
        return password;
    }
    
    /**
     * @param 对password进行赋值
     */
    public void setPassword(String password)
    {
        this.password = password;
    }
    
    /**
     * @return 返回 enableAnonymous
     */
    public boolean getEnableAnonymous()
    {
        return enableAnonymous;
    }
    
    /**
     * @param 对enableAnonymous进行赋值
     */
    public void setEnableAnonymous(boolean enableAnonymous)
    {
        this.enableAnonymous = enableAnonymous;
    }

    /**
     * @return 返回 sftpUser
     */
    public boolean isSftpUser()
    {
        return sftpUser;
    }

    /**
     * @param 对sftpUser进行赋值
     */
    public void setSftpUser(boolean sftpUser)
    {
        this.sftpUser = sftpUser;
    }

    /** 
     * <初始化一个新的FileTransferServerAuth>
     * <功能详细描述>
     *
     *<参数说明及返回类型说明>
     * @return FileTransferServerAuth
     * @see [类、类#方法、类#成员]
     */
    public FtpServerAuth initAuth()
    {
        FtpServerAuth auth = new FtpServerAuth();
        auth.sftpUser = sftpUser;
        auth.password = password;
        auth.userName = userName;
        auth.enableAnonymous = enableAnonymous;
        return auth;
    }
    
}
